# -*- coding: UTF-8 -*-
#-------------------------------------------------------------------------------
# Name:        data.py
# Purpose:
#
# Author:      Drago@
#
# Created:     06.08.2009
# Copyright:   (c) Drago@ 2009
# Licence:     <your licence>
#-------------------------------------------------------------------------------
#!/usr/bin/env python

class Point(object):
    """
        Location point model class
    """

    __slots__ = ["latitude", "longitude", "altitude", "time", "pointTypeId", "trekingObjectId"]

    def __init__(self, latitude, longitude, altitude, time, pointTypeId, trekingObjectId):
        """
            Point constructor
        """
        self.latitude = latitude
        self.longitude = longitude
        self.altitude = altitude
        self.time = time
        self.pointTypeId = pointTypeId
        self.trekingObjectId = trekingObjectId
        
    def __repr__(self):
        """
            Point representation
        """
        return ("Point: [tracing object ID: %s, latitude: %s, longitude: %s, altitude:%s, time: %s, point type ID: %s]" %
            (self.trekingObjectId, self.latitude, self.longitude,  self.altitude, self.time, self.pointTypeId))